home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 1998 June
/
SGI Freeware 1998 June.iso
/
dist
/
fw_IZzip.idb
/
usr
/
freeware
/
src
/
zip
/
human68k
/
human68k.c.z
/
human68k.c
Wrap
C/C++ Source or Header
|
1997-09-09
|
437b
|
22 lines
#include <string.h>
#include <sys/stat.h>
int h68_stat(char *name, struct stat *st)
{
int ret;
#if 0 /* This is not needed. LIBC is debugged. */
if (strchr(name, '*') != NULL || strchr(name, '?') != NULL)
return -1;
#endif
ret = stat(name, st);
if (ret == -1)
return -1;
if (S_ISEXBIT(st->st_mode))
st->st_mode |= S_IEXEC;
else
st->st_mode &= ~S_IEXEC;
st->st_mode &= (~022 & 0177777);
return ret;
}